﻿@model BookSubscriptionViewModel

<div class="adminPanel">
	@{string commonTooltipUrl = Url.Action("GetGenericTooltip", (string)"Tooltip");}
	@if (Model.SubscriptionState != SubscribeState.Reader)
	{
		<span class= "icon smallIcon historyReaderIcon" data-state="@((int)SubscribeState.Reader)" data-postback="@Url.Action("AddSubscriptionAdmin", "Library")" data-tooltip-url="@commonTooltipUrl" data-tooltip-type="@((int)TooltipType.MoveToReader)" data-tooltip-id="genericTooltip">&nbsp;</span>
	}
	else
	{
		<span class= "icon smallIcon currentReaderIcon" data-state="@((int)SubscribeState.History)" data-postback="@Url.Action("AddSubscriptionAdmin", "Library")" data-tooltip-url="@commonTooltipUrl" data-tooltip-type="@((int)TooltipType.HaveReadAndReturned)" data-tooltip-id="genericTooltip">&nbsp;</span>
	}

	@if (Model.SubscriptionState == SubscribeState.Waiting)
	{
	<span class="icon backPointerIcon smallIcon" data-state="@((int)SubscribeState.History)" data-postback="@Url.Action("AddSubscriptionAdmin", "Library")" data-tooltip-url="@commonTooltipUrl" data-tooltip-type="@((int)TooltipType.MoveToHistoryList)" data-tooltip-id="genericTooltip">&nbsp;</span>
	}
	else
	{
	<span class="icon pointerIcon smallIcon" data-state="@((int)SubscribeState.Waiting)" data-postback="@Url.Action("AddSubscriptionAdmin", "Library")" data-tooltip-url="@commonTooltipUrl" data-tooltip-type="@((int)TooltipType.MoveToWaitingList)" data-tooltip-id="genericTooltip">&nbsp;</span>
	}
	
	<span class="icon crossIcon smallIcon" data-postback="@Url.Action("DeleteSubscriptions", "Library")" data-tooltip-url="@commonTooltipUrl" data-tooltip-type="@((int)TooltipType.DeleteAllInfo)" data-tooltip-id="genericTooltip">&nbsp;</span>
		
	<span class="icon undo smallIcon" data-state="@((int)SubscribeState.Stateless)" data-postback="@Url.Action("RollSubscription", "Library")" data-tooltip-url="@commonTooltipUrl" data-tooltip-type="@((int)TooltipType.Undo)" data-tooltip-id="genericTooltip">&nbsp;</span>
	<span class="icon redo smallIcon" data-state="@((int)SubscribeState.Stateless)" data-postback="@Url.Action("RollSubscription", "Library")" data-tooltip-url="@commonTooltipUrl" data-tooltip-type="@((int)TooltipType.Redo)" data-tooltip-id="genericTooltip">&nbsp;</span>
</div>